using System;
using System.Collections.Generic;
namespace JQueryControlToolkit.Controls
{
	public class FadeIn : JQueryAction
	{
		protected override string jQueryFunction
		{
			get
			{
				return JQuery.GetPlugInMethod("JQuery:FadeIn");
			}
		}
		public int Speed
		{
			get;
			set;
		}
		public Container<JQueryAction> Chaining
		{
			get;
			set;
		}
		public FadeIn()
		{
			this.Chaining = new Container<JQueryAction>();
			this.Speed = 400;
		}
		protected override Dictionary<string, object> EvaluateParameters(Dictionary<string, object> properties)
		{
			List<object> unNamedParameters = new List<object>();
			unNamedParameters.Add(this.Speed);
			if (this.Chaining.Elements.Count > 0)
			{
				unNamedParameters.Add(new JSFunction(this.Chaining.Elements.ToArray()));
			}
			return new Dictionary<string, object>
			{

				{
					"",
					unNamedParameters
				}
			};
		}
	}
}
